﻿namespace Ext.Net
{
    public partial class ContainerBase
    {

        public void StartModify()
        {
            AllowCallbackScriptMonitoring = true;
            foreach (var c in Items)
            {
                if (c is ContainerBase)
                    ((ContainerBase)c).StartModify();
                else
                    c.AllowCallbackScriptMonitoring = true;
            }
            foreach (var c in LazyItems)
            {
                if (c is ContainerBase)
                    ((ContainerBase)c).StartModify();
                else
                    c.AllowCallbackScriptMonitoring = true;
            }
            foreach (var c in Controls)
            {
                if (c is ContainerBase)
                    ((ContainerBase)c).StartModify();
                else if (c is XControl)
                    ((XControl)c).AllowCallbackScriptMonitoring = true;
            }
        }

    }
}
